package exercise_1;

import java.util.Scanner;

public class exercise_3 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int number=0; 
		int counter=0;
		for(int guess=1;guess!=number;counter++) {
			number = (int)(Math.random()*100);
			System.out.print("please guess:");
		    guess = in.nextInt();
			if(guess>number) {
				System.out.println("greater than the number");
			}
			else if(guess<number) {
				System.out.println("less than the number");
			}
		}
		if (counter==1) {
			System.out.println("talented");
		}
		else if (counter>=2&&counter<=6) {
			System.out.println("intelligent");
		}
		else {
			System.out.println("try harder next time");
		}
	}

}
